<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('计划提前几天执行')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ncWork-edit" th:object="${ncStageMirror}">
        <input id="stageMirrorId" name="stageMirrorId" th:field="*{stageMirrorId}" type="hidden">

        <div class="form-group">
            <label class="col-sm-3 control-label">推迟天数：</label>
            <div class="col-sm-8">
                <input name="delayDays" th:field="*{delayDays}" th:max="*{delayDays}" required class="form-control" type="number">
            </div>
        </div>

    </form>
</div>
<div th:include="include::footer"></div>

<script th:inline="javascript" type="text/javascript">
    var prefix = ctx + "system/ncWork";
    $("#form-ncWork-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/delayDays", $('#form-ncWork-edit').serialize(), function (result) {
                parent.reload();
            });
        }
    }


</script>
</body>
</html>
